# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=bashrun
pkgver=0.16.1
pkgrel=5
pkgdesc="An x11 application launcher based on bash"
arch=('any')
url="https://sourceforge.net/projects/bashrun"
license=('GPL')
depends=('bash')
optdepends=('xdotool: allow bashrun to run in background')
source=(https://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.gz)
sha512sums=('49fe7b50b7439e8dc8d642510e6e843743c96005ee7787febb39eed543c488d7fcd83ec776cba42f89670e3af98d7273c7d5f429a5893f5b2b0cb5b48bd299ab')

package() {
  cd ${srcdir}/$pkgname-$pkgver

  install -D -m755 $pkgname ${pkgdir}/usr/bin/$pkgname
  install -D -m644 $pkgname.1 ${pkgdir}/usr/share/man/man1/$pkgname.1
  install -D -m644 bashrc ${pkgdir}/usr/share/$pkgname/bashrc
}

